package com.coding.pojo;

import java.io.Serializable;

/**
 * tasklist
 * @author 
 */
public class Tasklist extends TasklistKey implements Serializable {
    private String tasklist_time;

    private Integer tasklist_status;

    private String tasklist_more1;

    private String tasklist_more2;

    Task task;

    private static final long serialVersionUID = 1L;

    public String getTasklist_time() {
        return tasklist_time;
    }

    public void setTasklist_time(String tasklist_time) {
        this.tasklist_time = tasklist_time;
    }

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }

    public Integer getTasklist_status() {
        return tasklist_status;
    }

    public void setTasklist_status(Integer tasklist_status) {
        this.tasklist_status = tasklist_status;
    }

    public String getTasklist_more1() {
        return tasklist_more1;
    }

    public void setTasklist_more1(String tasklist_more1) {
        this.tasklist_more1 = tasklist_more1;
    }

    public String getTasklist_more2() {
        return tasklist_more2;
    }

    public void setTasklist_more2(String tasklist_more2) {
        this.tasklist_more2 = tasklist_more2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Tasklist other = (Tasklist) that;
        return (this.getUser_id() == null ? other.getUser_id() == null : this.getUser_id().equals(other.getUser_id()))
            && (this.getTask_id() == null ? other.getTask_id() == null : this.getTask_id().equals(other.getTask_id()))
            && (this.getTasklist_time() == null ? other.getTasklist_time() == null : this.getTasklist_time().equals(other.getTasklist_time()))
            && (this.getTasklist_status() == null ? other.getTasklist_status() == null : this.getTasklist_status().equals(other.getTasklist_status()))
            && (this.getTasklist_more1() == null ? other.getTasklist_more1() == null : this.getTasklist_more1().equals(other.getTasklist_more1()))
            && (this.getTasklist_more2() == null ? other.getTasklist_more2() == null : this.getTasklist_more2().equals(other.getTasklist_more2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUser_id() == null) ? 0 : getUser_id().hashCode());
        result = prime * result + ((getTask_id() == null) ? 0 : getTask_id().hashCode());
        result = prime * result + ((getTasklist_time() == null) ? 0 : getTasklist_time().hashCode());
        result = prime * result + ((getTasklist_status() == null) ? 0 : getTasklist_status().hashCode());
        result = prime * result + ((getTasklist_more1() == null) ? 0 : getTasklist_more1().hashCode());
        result = prime * result + ((getTasklist_more2() == null) ? 0 : getTasklist_more2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tasklist_time=").append(tasklist_time);
        sb.append(", tasklist_status=").append(tasklist_status);
        sb.append(", tasklist_more1=").append(tasklist_more1);
        sb.append(", tasklist_more2=").append(tasklist_more2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}